package com.ling.pl.security.model;

import com.ling.pl.core.commons.constant.TablePreDef;
import com.ling.pl.core.model.impl.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 组织和岗位关系
 *
 * @author bo.wang
 * @version 2.0.0
 * @create 2016年3月15日 下午1:57:14
 */
@Entity
@Table(name = OrgPosition.TABLE)
public class OrgPosition extends BaseEntity {

    public static final String TABLE = TablePreDef.BASEPRE + "ORG_POSITION";
    public static final String SEQ = TABLE;

    @Id
    @Column(name = "ORG_POSITION_ID", length = 60)
    private String id;

    @Column(name = "ORG_ID", length = 60, nullable = false)
    private String orgId;

    @Column(name = "POSITION_ID", length = 60, nullable = false)
    private String positionId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }
}
